package com.dr.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dr.entity.Address;

public interface AddressMapper {
	/**
	 * 
	 * @param id
	 * @return
	 */
	public List<Address> findAddress(@Param("id")Integer id);
	/**
	 * 根据收货id查询地址表
	 * @param id
	 * @return
	 */
	public Address AllAddress(@Param("id")Integer id);
	/**
	 * 添加地址
	 * @param a
	 * @return
	 */
	public int addAddress(Address a);
	/**
	 * 修改地址
	 * @param a
	 * @return
	 */
	public int updateAddress(Address a);
}
